package net.oschina.app.com.oschina.pages;

import android.widget.FrameLayout;
import android.widget.ImageView;

import net.oschina.app.SoloWrap;

/**
 * Created by Administrator on 2017/1/5.
 */

public class NavigationPage {

    private SoloWrap solo;
    private FrameLayout news;
    private FrameLayout tweet;
    private FrameLayout explore;
    private FrameLayout me;
    private ImageView tweet_pub;

    public NavigationPage(SoloWrap solo){
        this.solo = solo;
    }

    public void initViews(){
        news = (FrameLayout) solo.getView("net.oschina.app:id/nav_item_news");
        tweet = (FrameLayout) solo.getView("net.oschina.app:id/nav_item_tweet");
        explore = (FrameLayout) solo.getView("net.oschina.app:id/nav_item_explore");
        me = (FrameLayout) solo.getView("net.oschina.app:id/nav_item_me");
        tweet_pub = (ImageView) solo.getView("net.oschina.app:id/nav_item_tweet_pub");
    }

    public void clickNews(){
        solo.clickOnView(news);
    }

    public void clickTweet(){
        solo.clickOnView(tweet);
    }

    public void clickExplore(){
        solo.clickOnView(explore);
    }

    public void clickMe(){
        solo.clickOnView(me);
    }

    public void clickTweet_pub(){
        solo.clickOnView(tweet_pub);
    }

}
